package org.extframework.ld.xml.base;

/**
 * @author : Dong.Li
 * @created : 2013-1-17
 * @version : 1.0
 * @description :
 */
public class RightMenu {

	private String mid;
	private String type;
	private String selectType = "none";
	private String text;
	private String managerAction;
	private String pageId;
	private String condition;
	private String confirm;
	private int sort = 0;

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSelectType() {
		return this.selectType;
	}

	public void setSelectType(String selectType) {
		this.selectType = selectType;
	}

	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getPageId() {
		return this.pageId;
	}

	public void setPageId(String pageId) {
		this.pageId = pageId;
	}

	public String getMid() {
		return this.mid;
	}

	public void setMid(String mid) {
		this.mid = mid;
	}

	public String getManagerAction() {
		return this.managerAction;
	}

	public void setManagerAction(String managerAction) {
		this.managerAction = managerAction;
	}

	public String getCondition() {
		return this.condition;
	}

	public void setCondition(String condition) {
		if (condition == null) {
			return;
		}
		condition = condition.replaceAll("\\.", "_");
		condition = condition.replaceAll("true", "是");
		condition = condition.replaceAll("false", "否");
		this.condition = condition.replaceAll("\\.", "_");
	}

	public String getConfirm() {
		return this.confirm;
	}

	public void setConfirm(String confirm) {
		this.confirm = confirm;
	}

}
